//
//  WY_ScrollView.h
//  Treadmill
//
//  Created by 王跃 on 17/9/29.
//  Copyright © 2017年 王跃. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol WY_ScrollButtonViewDelegate <NSObject>

-(void)buttonSelectedIndex:(NSInteger)index;

@end

@interface WY_ScrollButtonView : UIView
/*遵守button选择协议*/
@property(nonatomic,weak)id <WY_ScrollButtonViewDelegate> delete;
/*传入数组，需要显示的button的的title*/
@property (nonatomic, strong)NSArray *buttonTitleArray;
/*修改tintColor  默认绿色*/
@property (nonatomic, strong)UIColor *tintColor;
/*默认字体颜色    默认黑色*/
@property (nonatomic, strong) UIColor *defaultcolor;
/*下划线的长度是否和字体长度一致，NO为button宽度，YES为一致*/
@property (nonatomic, assign) BOOL isLengthContainTitle;
/*默认第一个为选择项 */
@property (nonatomic, assign) NSInteger defaultSelectIndex;
/*默认是无底线 */
@property (nonatomic, assign) BOOL bottomLineHidden;
/*传入index实现联动效果，可选实现*/
-(void)ScrollButtonViewDidScrollToIndex:(NSInteger)index;
@end
